﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RIDA.Engine;

namespace RIDA.Stub
{
    public class GenericEqualityComparer<T> : EqualityComparer<T> where T:IExecutableTask
    {
        public override bool Equals(T x, T y)
        {
            return x.Name.Equals(y.Name);
        }

        public override int GetHashCode(T obj)
        {
            return obj.Name.GetHashCode();
        }
    }
}
